[INFO] cloning repository https://github.com/Saeris/rust-potrace
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Saeris/rust-potrace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7d93d0db47e0b5fa3bf4e250d5dec3d48ac79a54
[INFO] building Saeris/rust-potrace against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Saeris/rust-potrace on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Saeris/rust-potrace
[INFO] finished tweaking git repo https://github.com/Saeris/rust-potrace
[INFO] tweaked toml for git repo https://github.com/Saeris/rust-potrace written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] crate git repo https://github.com/Saeris/rust-potrace already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cached_proc_macro v0.4.0
[INFO] [stderr]   Downloaded cached v0.19.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 91a8edd5d85b68fb5b841c4b094689e03bc8d09549d6e7902addf2237ad14b33
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "91a8edd5d85b68fb5b841c4b094689e03bc8d09549d6e7902addf2237ad14b33", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "91a8edd5d85b68fb5b841c4b094689e03bc8d09549d6e7902addf2237ad14b33", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "91a8edd5d85b68fb5b841c4b094689e03bc8d09549d6e7902addf2237ad14b33", kill_on_drop: false }`
[INFO] [stdout] 91a8edd5d85b68fb5b841c4b094689e03bc8d09549d6e7902addf2237ad14b33
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 44a4feaf3b223705d562096d1154a060f04bde08a79b08c6c7f57b592759b9a3
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "44a4feaf3b223705d562096d1154a060f04bde08a79b08c6c7f57b592759b9a3", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling syn v1.0.41
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.68
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling strsim v0.9.3
[INFO] [stderr]    Compiling memchr v2.3.3
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling bumpalo v3.4.0
[INFO] [stderr]    Compiling event-listener v2.4.0
[INFO] [stderr]    Compiling lzw v0.10.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.68
[INFO] [stderr]    Compiling color_quant v1.0.1
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling regex-syntax v0.6.18
[INFO] [stderr]    Compiling once_cell v1.4.1
[INFO] [stderr]    Compiling base64 v0.12.3
[INFO] [stderr]    Compiling thread_local v1.0.1
[INFO] [stderr]    Compiling async-mutex v1.3.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.21
[INFO] [stderr]    Compiling crc32fast v1.2.0
[INFO] [stderr]    Compiling gif v0.10.3
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling num-traits v0.2.12
[INFO] [stderr]    Compiling memoffset v0.5.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]    Compiling num-integer v0.1.43
[INFO] [stderr]    Compiling num-bigint v0.3.0
[INFO] [stderr]    Compiling num-iter v0.1.41
[INFO] [stderr]    Compiling num-rational v0.3.0
[INFO] [stderr]    Compiling rayon v1.4.0
[INFO] [stderr]    Compiling aho-corasick v0.7.13
[INFO] [stderr]    Compiling deflate v0.8.6
[INFO] [stderr]    Compiling tiff v0.5.0
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling png v0.16.7
[INFO] [stderr]    Compiling crossbeam-channel v0.4.4
[INFO] [stderr]    Compiling crossbeam-deque v0.7.3
[INFO] [stderr]    Compiling num-complex v0.3.0
[INFO] [stderr]    Compiling rayon-core v1.8.1
[INFO] [stderr]    Compiling regex v1.3.9
[INFO] [stderr]    Compiling num v0.3.0
[INFO] [stderr]    Compiling darling_core v0.10.2
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.68
[INFO] [stderr]    Compiling jpeg-decoder v0.1.20
[INFO] [stderr]    Compiling image v0.23.9
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.68
[INFO] [stderr]    Compiling darling_macro v0.10.2
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.68
[INFO] [stderr]    Compiling darling v0.10.2
[INFO] [stderr]    Compiling cached_proc_macro v0.4.0
[INFO] [stderr]    Compiling cached v0.19.0
[INFO] [stderr]    Compiling rust-potrace v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: cannot use a comma after the base struct
[INFO] [stdout]    --> src/posterizer.rs:176:48
[INFO] [stdout]     |
[INFO] [stdout] 176 |         potrace.setParameters(PotraceOptions { ..Default::default(), blackOnWhite });
[INFO] [stdout]     |                                                ^^^^^^^^^^^^^^^^^^^^- help: remove this comma
[INFO] [stdout]     |
[INFO] [stdout]     = note: the base struct must always be the last field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found `1`
[INFO] [stdout]    --> src/posterizer.rs:243:82
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                           --------------------   ^ expected identifier
[INFO] [stdout]     |                                                           |
[INFO] [stdout]     |                                                           while parsing this struct
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]    --> src/posterizer.rs:243:52
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                    ^   ^^
[INFO] [stdout]     |
[INFO] [stdout] help: parenthesize the comparison
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if (a < b) == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                  ^     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: missing condition for `if` expression
[INFO] [stdout]    --> src/posterizer.rs:243:49
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                 ^ expected if condition here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `null` in this scope
[INFO] [stdout]    --> src/posterizer.rs:123:36
[INFO] [stdout]     |
[INFO] [stdout] 123 |         self.calculatedThreshold = null
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 1   | use std::ptr::null;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `null` in this scope
[INFO] [stdout]    --> src/posterizer.rs:129:36
[INFO] [stdout]     |
[INFO] [stdout] 129 |         self.calculatedThreshold = null;
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 1   | use std::ptr::null;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `boolean` in this scope
[INFO] [stdout]    --> src/posterizer.rs:167:41
[INFO] [stdout]     |
[INFO] [stdout] 167 |     fn pathTags(&mut self, noFillColor: boolean) -> Vec<&str> {
[INFO] [stdout]     |                                         ^^^^^^^
[INFO] [stdout]     |                                         |
[INFO] [stdout]     |                                         not found in this scope
[INFO] [stdout]     |                                         help: perhaps you intended to use this type: `bool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `parseFloat` in this scope
[INFO] [stdout]    --> src/posterizer.rs:197:39
[INFO] [stdout]     |
[INFO] [stdout] 197 |             calculatedOpacity = clamp(parseFloat(calculatedOpacity.toFixed(3)), 0, 1);
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Array` in this scope
[INFO] [stdout]    --> src/posterizer.rs:219:13
[INFO] [stdout]     |
[INFO] [stdout] 219 |         if !Array.isArray(steps) {
[INFO] [stdout]     |             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Math` in this scope
[INFO] [stdout]    --> src/posterizer.rs:297:33
[INFO] [stdout]     |
[INFO] [stdout] 297 |             let mut threshold = Math.min(colorsToThreshold, (i + 1) * stepSize);
[INFO] [stdout]     |                                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `isNaN` in this scope
[INFO] [stdout]    --> src/posterizer.rs:351:36
[INFO] [stdout]     |
[INFO] [stdout] 351 |                 colorIntensity: if isNaN(color) { 0 } else { (if blackOnWhite { 255 - color } else { color }) / 255 }
[INFO] [stdout]     |                                    ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Array` in this scope
[INFO] [stdout]    --> src/posterizer.rs:423:12
[INFO] [stdout]     |
[INFO] [stdout] 423 |         if Array.isArray(steps) && count {
[INFO] [stdout]     |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Math` in this scope
[INFO] [stdout]    --> src/posterizer.rs:440:13
[INFO] [stdout]     |
[INFO] [stdout] 440 |             Math.min(colorsCount, Math.max(2, steps))
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Math` in this scope
[INFO] [stdout]    --> src/posterizer.rs:440:35
[INFO] [stdout]     |
[INFO] [stdout] 440 |             Math.min(colorsCount, Math.max(2, steps))
[INFO] [stdout]     |                                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `min`
[INFO] [stdout]  --> src/posterizer.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::{max, min};
[INFO] [stdout]   |                     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary braces around block return value
[INFO] [stdout]    --> src/posterizer.rs:243:91
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                                                           ^^^^^^ help: remove these braces
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_braces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/potrace.rs:234:15
[INFO] [stdout]     |
[INFO] [stdout] 234 |         while (currentPoint = blackMap.find_next(currentPoint)) {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:28:30
[INFO] [stdout]    |
[INFO] [stdout] 28 |     fillStrategy: Option<Box<&str>>, // typeof FILL_DOMINANT | string
[INFO] [stdout]    |                              ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct PosterizerOptions<'a> {
[INFO] [stdout] 26 |     potrace: Option<Box<PotraceOptions>>,
[INFO] [stdout] 27 |     steps: Option<Box<Vec<u8>>>, // typeof STEPS_AUTO | number | number[]
[INFO] [stdout] 28 |     fillStrategy: Option<Box<&'a str>>, // typeof FILL_DOMINANT | string
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:29:24
[INFO] [stdout]    |
[INFO] [stdout] 29 |     rangeDistribution: &str, // typeof RANGES_AUTO | string
[INFO] [stdout]    |                        ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct PosterizerOptions<'a> {
[INFO] [stdout] 26 |     potrace: Option<Box<PotraceOptions>>,
[INFO] [stdout] 27 |     steps: Option<Box<Vec<u8>>>, // typeof STEPS_AUTO | number | number[]
[INFO] [stdout] 28 |     fillStrategy: Option<Box<&str>>, // typeof FILL_DOMINANT | string
[INFO] [stdout] 29 |     rangeDistribution: &'a str, // typeof RANGES_AUTO | string
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:57:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |     background: &str,
[INFO] [stdout]    |                 ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Posterizer<'a> {
[INFO] [stdout] 53 |     potrace: Potrace,
[INFO] [stdout] 54 |     calculatedThreshold: Option<Box<i32>>,
[INFO] [stdout] 55 |     threshold: Option<Box<i32>>,
[INFO] [stdout] 56 |     blackOnWhite: bool,
[INFO] [stdout] 57 |     background: &'a str,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:59:30
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fillStrategy: Option<Box<&str>>,
[INFO] [stdout]    |                              ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Posterizer<'a> {
[INFO] [stdout] 53 |     potrace: Potrace,
[INFO] [stdout] 54 |     calculatedThreshold: Option<Box<i32>>,
[INFO] [stdout] 55 |     threshold: Option<Box<i32>>,
[INFO] [stdout] 56 |     blackOnWhite: bool,
[INFO] [stdout] 57 |     background: &str,
[INFO] [stdout]  ...
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 |     rangeDistribution: &str,
[INFO] [stdout]    |                        ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Posterizer<'a> {
[INFO] [stdout] 53 |     potrace: Potrace,
[INFO] [stdout] 54 |     calculatedThreshold: Option<Box<i32>>,
[INFO] [stdout] 55 |     threshold: Option<Box<i32>>,
[INFO] [stdout] 56 |     blackOnWhite: bool,
[INFO] [stdout] 57 |     background: &str,
[INFO] [stdout]  ...
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 19 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0412, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-potrace`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "44a4feaf3b223705d562096d1154a060f04bde08a79b08c6c7f57b592759b9a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "44a4feaf3b223705d562096d1154a060f04bde08a79b08c6c7f57b592759b9a3", kill_on_drop: false }`
[INFO] [stdout] 44a4feaf3b223705d562096d1154a060f04bde08a79b08c6c7f57b592759b9a3
